package com.adam.springbucks.beas;

import com.adam.springbucks.entity.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * bean自动装配方式3：配置类
 */
@Configuration
public class MyDogConfiguration {

    @Bean
    public Dog cat() {
        return new Dog();
    }
}
